Skip to content

Generate correct ISchemaFilter implementation based on OpenApiVersionBeingUsed#882

Merged
SteveDunn merged 1 commit intoSteveDunn:mainfrom
JoschiZ:correct-ischemafilter-generation
Jan 25, 2026
Merged

Generate correct ISchemaFilter implementation based on OpenApiVersionBeingUsed#882
SteveDunn merged 1 commit intoSteveDunn:mainfrom
JoschiZ:correct-ischemafilter-generation

Conversation

@JoschiZ
Copy link
Copy Markdown
Contributor

@JoschiZ JoschiZ commented Jan 24, 2026

This fixes #881
Another entry in the list of breaking changes due to Microsoft.OpenApi 2.0

Adds a switch to use the correct type for the ISchemaFilter::Apply implementation based on the detected OpenApiSchemaUtils version.

See the related issue for further details.

Copy link
Copy Markdown
Owner

@SteveDunn SteveDunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you very much for the bug report and the fix!

@SteveDunn SteveDunn merged commit 4cd06ac into SteveDunn:main Jan 25, 2026
6 checks passed
@JoschiZ JoschiZ deleted the correct-ischemafilter-generation branch January 25, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenApiSchemaCustomizations.GenerateSwashbuckleSchemaFilter generates invalid code with newer Swashbuckle >10.0

2 participants